package com.yzd.learnjava.generics;

public class Holder3<T>{
	
	private T a ;
	public Holder3(T a ) {
		this.a = a;
	}
	
	public void set(T a) {
		this.a = a;
	}
	
	public T get() {
		return a ;
	}
	
	public static void main(String[] args) {
		Holder3<AutoMobile> holder3 = new Holder3<AutoMobile>(new AutoMobile());
		AutoMobile ad = holder3.get();
		
//		holder3.set("Not an AutoMobile");
	}

}
